/*
  S.M.A.C.K - An operating system kernel
  Copyright (C) 2010,2011 Mattias Holm and Kristian Rietveld
  For licensing and a full list of authors of the kernel, see the files
  COPYING and AUTHORS.
*/
#ifndef KERNEL__ASSERT_H
#define KERNEL__ASSERT_H

#include <stdio.h>
#include <panic.h>

#define assert(c)                 \
  do {                            \
    if (!(c)) {                   \
      puts("assert failed in: '");\
      puts(__FILE__);             \
      puts("' expression: ");     \
      puts(#c);                   \
      panic();                    \
    }                             \
  } while (0)

#endif /* !KERNEL__ASSERT_H */
